<template>
  <div class="app-container">
    <!-- 顶部 header 区域 -->
     <div class="header">
       <mt-header fixed title="我是大牛逼"></mt-header>    
     </div>

    <!-- 中间 <router-view></router-view> 区域-->
     <div>
			 <transition mode="out-in">
			  <router-view></router-view>
			 </transition>
			
		 </div>


    <!-- tab选项卡 -->
    <div>
      <nav class="mui-bar mui-bar-tab">
			<router-link id="defaultTab" class="mui-tab-item-zt" to="/home">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</router-link>
			<router-link class="mui-tab-item-zt" to="/contact">
				<span class="mui-icon mui-icon-contact"></span>
				<span class="mui-tab-label">会员</span>
			</router-link>
			<router-link class="mui-tab-item-zt" to="/shopcar">
				<span class="mui-icon mui-icon-extra mui-icon-extra-cart"><span class="mui-badge">0</span></span>
				<span class="mui-tab-label">购物车</span>
			</router-link>
			<router-link class="mui-tab-item-zt" to="/gear">
				<span class="mui-icon mui-icon-gear"></span>
				<span class="mui-tab-label">设置</span>
			</router-link>
		</nav>
    </div>
  </div>
</template>
<script>
export default {
  
}
</script>

<style scoped>
.app-container{
	padding-top: 40px;
	overflow-x: hidden;
	padding-bottom: 50px;
}


/* 实现一边出一边进 */
.v-enter{
	opacity: 0;
	transform: translateX(100%);
}
.v-leave-to{  
	opacity: 0;
	transform: translateX(-100%);
}

.v-enter-active,
.v-leave-active{
	transition: all 0.2s ease;
}
.mui-bar-tab .mui-tab-item-zt .mui-active {
    color: #007aff;
}
.mui-bar-tab .mui-tab-item-zt {
    display: table-cell;
    overflow: hidden;
    width: 1%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
}
.mui-bar-tab .mui-tab-item-zt .mui-icon {
    top: 3px;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
}
.mui-bar-tab .mui-tab-item-zt .mui-icon~ .mui-tab-label {
    font-size: 11px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mui-bar-tab .mui-tab-item-zt .mui-active{
	color: #007aff;
}
.mint-header.is-fixed{
  z-index: 9999;
}
</style>
